package com.jml.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.jml.service.GatewayService;


@RestController
public class GatewayController {
    @Autowired
    private GatewayService gatewayService;

    /**
     * 动态同步网关配置
     */
    @RequestMapping("/synGatewayConfig")
    public String synGatewayConfig() {
        return gatewayService.loadAllLoadRoute();
    }
}
